package com.ly.hotel.model;

import java.util.Date;

/**
 * AdDetail entity. @author MyEclipse Persistence Tools
 */

public class AdDetail implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2197523104235242741L;
	//广告的内容类型
	public static final int PIC = 1;
	public static final int VIDEO = 2;
	
	// Fields

	private Integer id;
	private String name;
	private Integer type;
	private int switchTime;
	private String path;
	private String des;
	private int status;
	private Date beginTime;
	private Date endTime;
	
	public boolean isCache = false;//标记是否已经缓存到本地了
	public String localPath = "";
	
	public AdDetail() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public int getSwitchTime() {
		return switchTime;
	}

	public void setSwitchTime(int switchTime) {
		this.switchTime = switchTime;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public int getStatus() {
		return status;
	}

	public boolean isEnable(){
		if(status == 10){
			return true;
		}else{
			return false;
		}
	}
	public void setStatus(int status) {
		this.status = status;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


}